package com.mogist.hqc.module.product.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.mogist.hqc.R
import com.mogist.hqc.entitys.response.ProductOrderVo
import talex.zsw.basecore.util.MathTool

/**
 * 作者：赵小白 email:vvtale@gmail.com  
 * 修改人：
 * 修改时间：
 * 修改备注：
 */
class ProductOrderSureAdapter : BaseQuickAdapter<ProductOrderVo, BaseViewHolder>(R.layout.item_product_order_sure)
{
    override fun convert(helper: BaseViewHolder, item: ProductOrderVo)
    {// iTvTitle iTvPrice iCustomNumberPick
        helper.setText(R.id.iTvTitle,item.name)
                .setText(R.id.iTvPrice, "￥${MathTool.roundStr(item.price, 2)} x ${item.count}" )
    }
}